package com.wust.eim.po;

import java.util.ArrayList;
import java.util.List;

public class MajorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MajorExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMajoridIsNull() {
            addCriterion("majorid is null");
            return (Criteria) this;
        }

        public Criteria andMajoridIsNotNull() {
            addCriterion("majorid is not null");
            return (Criteria) this;
        }

        public Criteria andMajoridEqualTo(String value) {
            addCriterion("majorid =", value, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridNotEqualTo(String value) {
            addCriterion("majorid <>", value, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridGreaterThan(String value) {
            addCriterion("majorid >", value, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridGreaterThanOrEqualTo(String value) {
            addCriterion("majorid >=", value, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridLessThan(String value) {
            addCriterion("majorid <", value, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridLessThanOrEqualTo(String value) {
            addCriterion("majorid <=", value, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridLike(String value) {
            addCriterion("majorid like", value, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridNotLike(String value) {
            addCriterion("majorid not like", value, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridIn(List<String> values) {
            addCriterion("majorid in", values, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridNotIn(List<String> values) {
            addCriterion("majorid not in", values, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridBetween(String value1, String value2) {
            addCriterion("majorid between", value1, value2, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajoridNotBetween(String value1, String value2) {
            addCriterion("majorid not between", value1, value2, "majorid");
            return (Criteria) this;
        }

        public Criteria andMajornumberIsNull() {
            addCriterion("majornumber is null");
            return (Criteria) this;
        }

        public Criteria andMajornumberIsNotNull() {
            addCriterion("majornumber is not null");
            return (Criteria) this;
        }

        public Criteria andMajornumberEqualTo(String value) {
            addCriterion("majornumber =", value, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberNotEqualTo(String value) {
            addCriterion("majornumber <>", value, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberGreaterThan(String value) {
            addCriterion("majornumber >", value, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberGreaterThanOrEqualTo(String value) {
            addCriterion("majornumber >=", value, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberLessThan(String value) {
            addCriterion("majornumber <", value, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberLessThanOrEqualTo(String value) {
            addCriterion("majornumber <=", value, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberLike(String value) {
            addCriterion("majornumber like", value, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberNotLike(String value) {
            addCriterion("majornumber not like", value, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberIn(List<String> values) {
            addCriterion("majornumber in", values, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberNotIn(List<String> values) {
            addCriterion("majornumber not in", values, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberBetween(String value1, String value2) {
            addCriterion("majornumber between", value1, value2, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajornumberNotBetween(String value1, String value2) {
            addCriterion("majornumber not between", value1, value2, "majornumber");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameIsNull() {
            addCriterion("majorfullname is null");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameIsNotNull() {
            addCriterion("majorfullname is not null");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameEqualTo(String value) {
            addCriterion("majorfullname =", value, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameNotEqualTo(String value) {
            addCriterion("majorfullname <>", value, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameGreaterThan(String value) {
            addCriterion("majorfullname >", value, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameGreaterThanOrEqualTo(String value) {
            addCriterion("majorfullname >=", value, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameLessThan(String value) {
            addCriterion("majorfullname <", value, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameLessThanOrEqualTo(String value) {
            addCriterion("majorfullname <=", value, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameLike(String value) {
            addCriterion("majorfullname like", value, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameNotLike(String value) {
            addCriterion("majorfullname not like", value, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameIn(List<String> values) {
            addCriterion("majorfullname in", values, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameNotIn(List<String> values) {
            addCriterion("majorfullname not in", values, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameBetween(String value1, String value2) {
            addCriterion("majorfullname between", value1, value2, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajorfullnameNotBetween(String value1, String value2) {
            addCriterion("majorfullname not between", value1, value2, "majorfullname");
            return (Criteria) this;
        }

        public Criteria andMajornameIsNull() {
            addCriterion("majorname is null");
            return (Criteria) this;
        }

        public Criteria andMajornameIsNotNull() {
            addCriterion("majorname is not null");
            return (Criteria) this;
        }

        public Criteria andMajornameEqualTo(String value) {
            addCriterion("majorname =", value, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameNotEqualTo(String value) {
            addCriterion("majorname <>", value, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameGreaterThan(String value) {
            addCriterion("majorname >", value, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameGreaterThanOrEqualTo(String value) {
            addCriterion("majorname >=", value, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameLessThan(String value) {
            addCriterion("majorname <", value, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameLessThanOrEqualTo(String value) {
            addCriterion("majorname <=", value, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameLike(String value) {
            addCriterion("majorname like", value, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameNotLike(String value) {
            addCriterion("majorname not like", value, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameIn(List<String> values) {
            addCriterion("majorname in", values, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameNotIn(List<String> values) {
            addCriterion("majorname not in", values, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameBetween(String value1, String value2) {
            addCriterion("majorname between", value1, value2, "majorname");
            return (Criteria) this;
        }

        public Criteria andMajornameNotBetween(String value1, String value2) {
            addCriterion("majorname not between", value1, value2, "majorname");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}